package com.springcloud.learn;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Edison_lv  lvchangrong
 * @create 2017/11/30  17:36
 */
@Component
@RabbitListener(queues="hello")
public class Receiver {

    @RabbitHandler
    public void process(String hello){
        System.out.println("Receiver ===============:"+hello);
    }
}
